<template>
	<view class="container">
		<view class="btn">
			<u-icon name="arrow-left" size="48" @click="back" color="#ffffff"></u-icon>
		</view>
		<image :src="pic2" mode="widthFix" style="width: 750rpx;height: auto;" @click="click"></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pic2: '',
				type2: '',
				url2: ''
			}
		},
		onLoad(opt) {
			this.pic2 = this.fileURL+opt.pic2
			this.type2 = opt.type2
			this.url2 = opt.url2
		},
		methods: {
			click(){
				console.log('url2',this.url2)
				if(this.url2){
					if(this.type2 == 0){
						uni.navigateTo({
							url: this.url2
						})
					}else{
						uni.navigateTo({
							url: `/pages/webview/webview?url2=${this.url2}`
						})
					}
				}
			},
			back(){
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		width: 750rpx;
		position: relative;
		.btn{
			position: absolute;
			top: 50px;
			left: 4%;
		}
	}
</style>
